// +---------------------------------------------------------------------
// | 加梯 [ CRMEB赋能开发者，助力企业发展 ]
// +---------------------------------------------------------------------
// | Copyright (c) 2016~2021 https://www.lift.com All rights reserved.
// +---------------------------------------------------------------------
// | Licensed CRMEB并不是自由软件，未经许可不能去掉CRMEB相关版权
// +---------------------------------------------------------------------
// | Author: 加梯 Team <admin@lift.com>
// +---------------------------------------------------------------------

import BasicLayout from '@/components/main';

const meta = {
  auth: true,
};

const pre = 'exploration_';

export default {
  path: '/admin/exploration',
  name: 'exploration',
  header: 'exploration',
  redirect: {
    name: `${pre}list`,
  },
  meta,
  component: BasicLayout,
  children: [
    {
      path: 'task/list',
      name: `${pre}list`,
      meta: {
        auth: ['exploration-task-index'],
        title: '勘探任务',
      },
      component: () => import('@/pages/exploration/task/index')
    },
    {
      path: 'task/manager/list',
      name: `${pre}taskManager`,
      meta: {
        auth: ['exploration-task-manager-index'],
        title: '勘探任务管理',
      },
      component: () => import('@/pages/exploration/task-manager/index')
    },
    {
      path: 'enterprise/manager/list',
      name: `${pre}enterpriseManager`,
      meta: {
        auth: ['exploration-enterprise-manager-index'],
        title: '勘探企业管理',
      },
      component: () => import('@/pages/exploration/enterprise-manager/index')
    },
    {
      path: 'add_enterprise/:id?',
      name: `${pre}addEnterprise`,
      meta: {
        auth: ['exploration-add-enterprise'],
        title: '新增勘探企业',
      },
      component: () => import('@/pages/exploration/enterprise-manager/add/index'),
    },
    {
      path: 'manager/list',
      name: `${pre}Manager`,
      meta: {
        auth: ['exploration-manager-index'],
        title: '勘探管理',
      },
      component: () => import('@/pages/exploration/manager/index')
    },
    {
      path: 'report/results/:id?',
      name: `${pre}reportResults`,
      meta: {
        auth: ['report-exploration-results'],
        title: '上传勘探结果',
      },
      component: () => import('@/pages/exploration/manager/taskResult/index')
    }
  ],
};
